import os

# 数据库配置
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{user}:{password}@{server}:{port}/{db}'.format(
    user=os.getenv('DB_USER'),
    password=os.getenv('DB_PASSWORD'),
    server=os.getenv('DB_SERVER', 'localhost'),
    port=os.getenv('DB_PORT', 3306),
    db=os.getenv('DB_NAME')
)
SQLALCHEMY_TRACK_MODIFICATIONS = False